package order.service;

import common.model.result.Result;
import common.dto.userdto.AddressDTO;
import java.util.List;

public interface IOrderService {
    //创建订单
    Result createOrder(Long uid, AddressDTO addressDTO, List<String> cartIds, List<String> couponCodes);
    //获取订单
    Result getOrders(Long uid);
    //删除订单
    Result deleteOrder(Long oid);

    Result getOrderById(Long orderId);

    Result getOrdersByStatus(Integer status, Long uid);
    Result payOrder(String orderNo);
    Result shipOrder(Long orderId);
    Result cancelOrder(Long id);
    Result getOrdersList();
    Result getRecentOrders();
    Result getSalesTrend(String timeUnit);
    Result finishOrder(Long orderId);
    Result getOrderIdBySpuId(Long userId, Long spuId);
    Result getLogisticsByOrderItemId(Long orderItemId);
}
